//
// CMRMFaceBuild.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CVectorH;

public class CMRMFaceBuild {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CMRMFaceBuild(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CMRMFaceBuild obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CMRMFaceBuild(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setInterpolatedAttribute(CVectorH value) {
    nel3dJNI.CMRMFaceBuild_InterpolatedAttribute_set(swigCPtr, this, CVectorH.getCPtr(value), value);
  }

  public CVectorH getInterpolatedAttribute() {
    return new CVectorH(nel3dJNI.CMRMFaceBuild_InterpolatedAttribute_get(swigCPtr, this), true);
  }

  public void setBSInterpolated(SWIGTYPE_p_std__vectorT_CVectorH_t value) {
    nel3dJNI.CMRMFaceBuild_BSInterpolated_set(swigCPtr, this, SWIGTYPE_p_std__vectorT_CVectorH_t.getCPtr(value));
  }

  public SWIGTYPE_p_std__vectorT_CVectorH_t getBSInterpolated() {
    long cPtr = nel3dJNI.CMRMFaceBuild_BSInterpolated_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_std__vectorT_CVectorH_t(cPtr, false);
  }

  public void setDeleted(boolean value) {
    nel3dJNI.CMRMFaceBuild_Deleted_set(swigCPtr, this, value);
  }

  public boolean getDeleted() {
    return nel3dJNI.CMRMFaceBuild_Deleted_get(swigCPtr, this);
  }

  public void setIt0(SWIGTYPE_p_NL3D__TEdgeMap__iterator value) {
    nel3dJNI.CMRMFaceBuild_It0_set(swigCPtr, this, SWIGTYPE_p_NL3D__TEdgeMap__iterator.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__TEdgeMap__iterator getIt0() {
    return new SWIGTYPE_p_NL3D__TEdgeMap__iterator(nel3dJNI.CMRMFaceBuild_It0_get(swigCPtr, this), true);
  }

  public void setIt1(SWIGTYPE_p_NL3D__TEdgeMap__iterator value) {
    nel3dJNI.CMRMFaceBuild_It1_set(swigCPtr, this, SWIGTYPE_p_NL3D__TEdgeMap__iterator.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__TEdgeMap__iterator getIt1() {
    return new SWIGTYPE_p_NL3D__TEdgeMap__iterator(nel3dJNI.CMRMFaceBuild_It1_get(swigCPtr, this), true);
  }

  public void setIt2(SWIGTYPE_p_NL3D__TEdgeMap__iterator value) {
    nel3dJNI.CMRMFaceBuild_It2_set(swigCPtr, this, SWIGTYPE_p_NL3D__TEdgeMap__iterator.getCPtr(value));
  }

  public SWIGTYPE_p_NL3D__TEdgeMap__iterator getIt2() {
    return new SWIGTYPE_p_NL3D__TEdgeMap__iterator(nel3dJNI.CMRMFaceBuild_It2_get(swigCPtr, this), true);
  }

  public void setValidIt0(boolean value) {
    nel3dJNI.CMRMFaceBuild_ValidIt0_set(swigCPtr, this, value);
  }

  public boolean getValidIt0() {
    return nel3dJNI.CMRMFaceBuild_ValidIt0_get(swigCPtr, this);
  }

  public void setValidIt1(boolean value) {
    nel3dJNI.CMRMFaceBuild_ValidIt1_set(swigCPtr, this, value);
  }

  public boolean getValidIt1() {
    return nel3dJNI.CMRMFaceBuild_ValidIt1_get(swigCPtr, this);
  }

  public void setValidIt2(boolean value) {
    nel3dJNI.CMRMFaceBuild_ValidIt2_set(swigCPtr, this, value);
  }

  public boolean getValidIt2() {
    return nel3dJNI.CMRMFaceBuild_ValidIt2_get(swigCPtr, this);
  }

  public CMRMFaceBuild() {
    this(nel3dJNI.new_CMRMFaceBuild(), true);
  }

  public CMRMFaceBuild assign(CMRMFace f) {
    return new CMRMFaceBuild(nel3dJNI.CMRMFaceBuild_assign(swigCPtr, this, CMRMFace.getCPtr(f), f), false);
  }

  public int getAssociatedEdge(CMRMEdge edge) {
    return nel3dJNI.CMRMFaceBuild_getAssociatedEdge(swigCPtr, this, CMRMEdge.getCPtr(edge), edge);
  }

  public boolean hasEdge(CMRMEdge edge) {
    return nel3dJNI.CMRMFaceBuild_hasEdge(swigCPtr, this, CMRMEdge.getCPtr(edge), edge);
  }

  public CMRMEdge getEdge(int eId) {
    return new CMRMEdge(nel3dJNI.CMRMFaceBuild_getEdge(swigCPtr, this, eId), true);
  }

  public void invalidAllIts(SWIGTYPE_p_std__multimapT_float_NL3D__CMRMEdgeFace_t edgeMap) {
    nel3dJNI.CMRMFaceBuild_invalidAllIts(swigCPtr, this, SWIGTYPE_p_std__multimapT_float_NL3D__CMRMEdgeFace_t.getCPtr(edgeMap));
  }

  public void invalidEdgeIt(CMRMEdge e, SWIGTYPE_p_std__multimapT_float_NL3D__CMRMEdgeFace_t edgeMap) {
    nel3dJNI.CMRMFaceBuild_invalidEdgeIt(swigCPtr, this, CMRMEdge.getCPtr(e), e, SWIGTYPE_p_std__multimapT_float_NL3D__CMRMEdgeFace_t.getCPtr(edgeMap));
  }

  public boolean validEdgeIt(CMRMEdge e) {
    return nel3dJNI.CMRMFaceBuild_validEdgeIt(swigCPtr, this, CMRMEdge.getCPtr(e), e);
  }

  public boolean hasVertex(int numvertex) {
    return nel3dJNI.CMRMFaceBuild_hasVertex(swigCPtr, this, numvertex);
  }

  public boolean hasWedge(int attribId, int numwedge) {
    return nel3dJNI.CMRMFaceBuild_hasWedge(swigCPtr, this, attribId, numwedge);
  }

  public int getAssociatedWedge(int attribId, int numvertex) {
    return nel3dJNI.CMRMFaceBuild_getAssociatedWedge(swigCPtr, this, attribId, numvertex);
  }

}
